﻿using System;
using System.ComponentModel.Composition;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SilverAmp.TwitterExtension
{
    [Export]
    public class TwitterExtensionViewModel:IPartImportsSatisfiedNotification
    {
        [Import]
        public TwitterExtensionModel Model { get; set; }

        [Import] 
        public TwitterExtensionView View{ get; set;}

        public ICommand SendUpdateCommand { get; set; }

        public TwitterExtensionViewModel()
        {
            SendUpdateCommand = new DelegateCommand<string>(OnSendUpdateCommand);
        }

        private void OnSendUpdateCommand(string obj)
        {
            //TwitterProvider twitter = new TwitterProvider();
            //twitter.sendTweet("Test");
        }

        public void OnImportsSatisfied()
        {
            View.DataContext = this;
        }
    }
}
